<!DOCTYPE html>
<html>
	<head>
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
		<script src="/static/scripts/jq-plugins/jquery.postmessage.js" type="text/javascript"></script>
		<script src="jquery.wormhole-parent.js" type="text/javascript"></script>
		<script src="sharedapi.js" type="text/javascript"></script>
	</head>
	<body>
		<script type="text/javascript">
		$(function() {
			$.expose(API.test);
			
			$('#frame').load(function() {
				$(this).wormhole({
					selectors: ['#thingy'],
					methods: [ 'hide', ':fadeIn', '~click' ]
				});
			});
		});
		</script>
		
		<iframe id="frame" src="wormholeframe.html"></iframe>
		
		<div id="thingy">thingy</div>
		<div id="otherThingy">otherThingy</div>
	</body>
</html> 